package com.cw.jeeyt.service.intf.system;

import com.cw.jeeyt.service.bo.system.SystemAttachRelationBo;
import com.cw.lang.mybatis.dto.PageInfo;

/**
 * 附件关联关系业务接口
  * @author chenw
 * @version 1.0.0
 */
public interface SystemAttachRelationService {

    /**
     * 删除附件关联关系
     *
     * @param systemAttachRelationBo
     */
    void delete(SystemAttachRelationBo systemAttachRelationBo) throws Exception;

    /**
     * 更新附件关联关系
     *
     * @param systemAttachRelationBo
     */
    void update(SystemAttachRelationBo systemAttachRelationBo) throws Exception;

    /**
     * 根据主键查询附件关联关系
     *
     * @param id
     * @return
     */
    SystemAttachRelationBo getSystemAttachRelationById(String id) throws Exception;

    /**
     * 新增附件关联关系
     *
     * @param systemAttachRelationBo
     * @return
     */
    Integer insert(SystemAttachRelationBo systemAttachRelationBo) throws Exception;

    /**
     * 分页查询附件关联关系
     *
     * @param systemAttachRelationBo
     * @param startNum
     * @param pageSize
     * @return
     * @throws Exception
     */
    PageInfo<SystemAttachRelationBo> queryByPage(SystemAttachRelationBo systemAttachRelationBo, Integer startNum,
        Integer pageSize) throws Exception;

    void deleteByObjectIdAndAttachId(String objectId, String attachId) throws Exception;

}
